package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.AccountCashMapper;
import com.hcb.micro.dto.AccountCash;
import com.hcb.micro.service.IAccountCashService;

@Service("AccountCashService")
public class AccountCashServiceImpl implements IAccountCashService {

	@Autowired
	AccountCashMapper accountCashMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return accountCashMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(AccountCash record) {
		return accountCashMapper.insert(record);
	}

	@Override
	public int insertSelective(AccountCash record) {
		return accountCashMapper.insertSelective(record);
	}

	@Override
	public AccountCash selectByPrimaryKey(Integer id) {
		return accountCashMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(AccountCash record) {
		return accountCashMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(AccountCash record) {
		return accountCashMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<AccountCash> selectByAccountId(Integer accountId) {
		return accountCashMapper.selectByAccountId(accountId);
	}

	@Override
	public AccountCash selectByCashRedId(Integer cashRedId) {
		return accountCashMapper.selectByCashRedId(cashRedId);
	}

	@Override
	public List<AccountCash> getAccountCashList(Map<String, Object> para) {
		return accountCashMapper.getAccountCashList(para);
	}

	@Override
	public List<AccountCash> findMoreThan3MonthAccountCash() {
		return accountCashMapper.findMoreThan3MonthAccountCash();
	}

}
